DXL Performance Instrumenter

After finding Doug Zawacki's very useful DXL performance instrumenter in this thread, I wrote a TCL script to perform the instrumentation of DXL functions automatically. This has been very helpful for determining performance issues in some of my scripts, and is much nicer than having to manually do it for large scripts.

Feel free to use at your own risk - bearing in mind a few things:
1. I have tested this for my own use - your mileage may vary, especially with regard to it's ability to identify your functions and code style.
2. You will probably have to move (and possibly make additional calls to, if there are multiple possible termination points) the auto-generated start and stop calls to where your script really starts or stops.
3. You will need to probably change where to put the results files in PerformanceMonitor.inc - line 12.
4. I use the Activestate distribution of TCL - I know it works with that, but can't guarantee with other distributions.
5. Put the TCL script and PerformanceMonitor.inc in the same folder, and it will put the performance monitor script with the instrumented file.

Hopefully, it is helpful.

Luke
LukeThomas - Thu Feb 23 09:03:08 EST 2012